<?php

require_once dirname(__FILE__)."/../model/companyTicker.php";

class csvTickerList{
	protected $fContent;
	protected $index;
	
	public function __construct($fName){
		$this->fContent = fgetcsv($fName);
		$this->index = 0;
	}
	
	public function GetRecord($i){
		$this->index = $i;
		return $this->fContent[$this->index];
	}
	
	public function GetNextRecord(){
		return $this->GetRecord($this->index + 1);
	}
}

?>
